#pragma once
#include "light.h"
#include "vector3.h"
#include "vector4.h"
namespace RayTrace{

	class CPointLight : public RayTrace::CLight
	{
	public:
		CPointLight(void);
		~CPointLight(void);
//		bool IsLight(vector3 p, std::vector<IShape* > objects);
		vector4 CalColor(const vector3& eye,const vector3& pos,const vector3& normal,const CMaterial & mat);
	private:
		vector4 m_ambient;
		vector4 m_diffuse;
		vector4 m_specular;
public:
	vector4 GetAmbient(){return m_ambient;}
	vector4 GetDiffuse(){return m_diffuse;}
	vector4 GetSpecular(){return m_specular;}

	void SetAmbient(vector4 c){m_ambient=c;}
	void SetDiffuse(vector4 c){m_diffuse=c;}
	void SetSpecular(vector4 c){m_specular=c;}


};
}